package communication;

public abstract class SubjectRequestHandler implements RequestHandler {
	
	private String subject;
	
	public SubjectRequestHandler(String subject) {
		this.subject = subject;
	}

	@Override
	public boolean isCorresponding(ParameterizedMessage message) {
		if (message.getSubject() != null && message.getSubject().equals(subject)) {
			return true;
		}
		
		return false;
	}


}
